<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlterEnrollsOne extends Migration
{
    const TABLE = 'enrolls';
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        if (!Schema::hasColumn(self::TABLE, 'status')) {
            Schema::table(self::TABLE, function (Blueprint $table) {
                $table->smallInteger('status')->default(0)->comment('0-未审核 1-未通过 2-通过');//0-未审核 1-未通过 2-通过
            });
        }
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
